package ucl.cs.bank.common;

/**
 * UCLAccount Information.
 * @author  K. Bryson.
 * @version 1.0
 */

///////////////// WHY DOES THIS NOT WORK CORRECTLY ? //////////////////

import java.io.Serializable;
import java.rmi.RemoteException;

public class UCLAccountInfo implements Serializable{

   private String name;
   private int    number;
   private float  balance = 0.0f;

   public UCLAccountInfo(String name, int account_number, float balance) throws RemoteException {
      this.name    = name;
      this.number  = account_number;
      this.balance = balance;
   }

   public String toString() {
      return " Account number: " + number +
             "\n Account name: " + name + 
             "\n Balance: "      + balance;
   }
}
